<template>
	<BaseContainer style="--w-left-gap: 20vw">
		<template #left>
			<ProjectSelect belongProject="govBuyManage"></ProjectSelect>
			<OmSupItem @change="handleChange"></OmSupItem>
		</template>
		<OmSubItem v-if="reloadKey !==null" :key="reloadKey" :paramsObj="paramsObj"></OmSubItem>
	</BaseContainer>
</template>

<script setup lang="ts">
import ProjectSelect from '@/views/homeCare/components/ProjectSelect/index.vue'
import OmSupItem from './OmSupItem/index.vue'
import OmSubItem from './OmSubItem/index.vue'

const reloadKey = ref(null)
const paramsObj = ref({
	superId: '',
})
const handleChange = (item) => {
	reloadKey.value = Math.random()
	paramsObj.value.superId = item.id
}
</script>

<style scoped></style>
